﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutoUpdater.Entity
{
    public class TscResponse<T>
    {
        public int code { get; set; }

        public string message { get; set; }

        public string token { get; set; }

        public T data { get; set; }

        public string messageDetail { get; set; }

        public static TscResponse<T> Fail(string message)
        {
            TscResponse<T> tscResponse = new TscResponse<T>();
            tscResponse.code = -1;
            tscResponse.message = message;
            return tscResponse;
        }
    }
}
